<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 12:26
 */

/**
 * Class Involved_FeedbackModel
 */

class Involved_FeedbackModel extends BaseModel{

    protected $table = 'feedback';


    /**
     * 反馈列表
     * @param $page
     * @return mixed
     * @date 2016-03-03
     * @author buluota
     */
    public function GetFeedbackList($page)
    {
        $offset = ($page-1) * HostEnum::PAGE_NUM;
        return  DB::table($this->table)
                ->selectRaw("content, FROM_UNIXTIME(created, '%Y-%m-%d %H:%i') as up_time")
                ->skip($offset)
                ->take(HostEnum::PAGE_NUM)
                ->orderBy('created', 'desc')
                ->get();
    }












}